<template>
	<view class="list-cell">
		<view class="list-front">
			<view v-if="leftIcon!=''">
				<image :src="leftIcon" :style="{width: iconSize + 'rpx',height: iconSize + 'rpx'}"></image>
			</view>
			<view class="list-front-text">{{leftText}}</view>
		</view>
		<view class="list-back">
			<view class="list-back-text" v-if="rightText!=''">{{rightText}}</view>
			<view v-if="rightContentIcon!=''">
				<image :src="rightContentIcon" :style="{width: iconSize + 'rpx',height: iconSize + 'rpx'}" mode="aspectFit"></image>
			</view>
			<view>
				<image :src="rightIcon" :style="{width: iconSize + 'rpx',height: iconSize + 'rpx'}"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			leftIcon:{
				type:String,
				default:''
			},
			leftText:{
				type:String,
				default:''
			},
			rightIcon:{
				type:String,
				default:''
			},
			rightText:{
				type:String,
				default:''
			},
			iconSize:{
				type:Number,
				default:60
			},
			rightContentIcon:{
				type:String,
				default:''
			}
		}
	};
</script>

<style>
	.list-cell{
		width: 700rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		background-color: #FFFFFF;
		padding: 20rpx;
		/* border-bottom: 1px solid #ebebeb; */
		font-size: 35rpx;
	}
	.list-front{
		display: flex;
		flex-direction: row;
		align-items: center;
		
	}
	.list-back{
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.list-front-text{
		padding: 10rpx;
	}
	.list-back-text{
		padding: 10rpx;
	}
</style>
